import { post, get } from "../utils/request"
// 用户登录
export const userLogin = (data) => {
  return post('/kitchen/user/login', data)
}
// 新增原料
export const addMaterial = (data) => {
  return post('/kitchen/material/add', data)
}
// 原料列表
export const materialList = (data) => {
  return post('/kitchen/material/list', data)

}
// 删除原料
export const deleteMateria = (data) => {
  return post('/kitchen/material/del', data)
}
// 编辑原料
export const editMaterial = (data) => {
  return post('/kitchen/material/edit', data)

}
// 分类列表
export const menuList = (data) => {
  return post('/kitchen/home/menu', data)

}
// 用户预订单顶部统计
export const userOrder = (data) => {
  return post('/kitchen/reserve/userReserveStatistics', data)

}
// 用户预订单列表
export const userOrderList = (data) => {
  return post('/kitchen/reserve/userReserveList', data)

}
// 店铺预订单统计
export const storeOrder = (data) => {
  return post('/kitchen/reserve/storeReserveStatistics', data)

}
// 店铺预订单列表
export const storeOrderList = (data) => {
  return post('/kitchen/reserve/storeReserveList', data)

}
// 骑手列表
export const riderList = (data) => {
  return post('/kitchen/Delivery/list', data)
}
// 分配订单
export const assignOrder = (data) => {
  return post('/kitchen/Delivery/assign', data)
}
// 退出登录
export const logOut = (data) => {
  return post('/kitchen/user/logout', data)
}

// 无法配送
export const notDelivery = (data) => {
  return post('/kitchen/Delivery/cancel', data)
}

// 菜品列表
export const foodlist = (data) => {
  return post('/kitchen/reserve/getfoodlist', data)
}
//地址关键词列表
export const keywordList = (data) => {
  return post('/kitchen/reserve/getkeywordlist', data)
}

// 用户预订单导出 
export const userExport = (params) => {
  return get('/kitchen/reserve/userReserveListExport', params)
}

// 销售网点预订单导出 
export const storeExport = (params) => {
  return get('/kitchen/reserve/storeReserveListExport', params)
}